using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using SimplePoker.Main;

namespace SimplePoker.Main
{
    public abstract class PlayerBase
    {
        private int _ChipCount;
        public int ChipCount
        {
            get
            {
                return _ChipCount;
            }
            set
            {
                if (value < 0)
                    throw new ArgumentException("A player cannot have negative chip amount.");
                _ChipCount = value;
            }
        }
        public Card @Card { get; set; }
        public string Name { get; private set; }


        public PlayerBase(string name)
        {
            this.Name = name;
            this.ChipCount = 1000;
        }

        public abstract PlayerAction GetAction();
        public abstract void NotifyNewHand();
        public abstract void NotifyOpponentsAction(PlayerAction action);
        public abstract void ShowOpponentsCard(Card card);

        public override string ToString()
        {
            return Name + " : " + ChipCount;
        }
    }
}